﻿@model Wiki.Models.WikiPageUI

@{
    ViewBag.Title = "Wiki Page Delete";
}

<h1>@ViewBag.Title</h1>
    <table border="0" cellpadding="5" cellspacing="0" width="100%">
    <tr><td valign="top">
    <fieldset>
        <legend>Wiki Info</legend>
        @Html.HiddenFor(model => model.WikiId)
        @Html.HiddenFor(model => model.WikiPageId)
        @Html.HiddenFor(model => model.BusinessUnitId)
        @Html.HiddenFor(model => model.WikiHomePageId)
    
        <div class="display-label">
            @Html.LabelFor(model => model.WikiName)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.WikiName)
        </div>
    
        <div class="display-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.Title)
        </div>

        <div class="display-label">
            @Html.LabelFor(model => model.PermissionId)
        </div>
        <div class="display-field">
            @ViewBag.PermissionName
        </div>

        <div class="display-label">
            @Html.LabelFor(model => model.PageName)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.PageName, new { size = "50" })
        </div>
    </fieldset>
    </td><td valign="top">
    <fieldset>
    <legend>Meta Information</legend>

        <div class="display-label">
            @Html.LabelFor(model => model.MetaKeywords)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.MetaKeywords, new { rows = "4", cols = "35" })
        </div>

        <div class="display-label">
            @Html.LabelFor(model => model.MetaDescription)
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.MetaDescription, new { rows = "4", cols = "35" })
        </div>
    </fieldset>
    </td></tr>    
    <tr><td colspan="2">
        <div class="display-field" id="ContentEditor">
            @Html.Raw(Model.ContentText)
        </div>
    </td></tr>
    <tr><td colspan="2">
    &nbsp;
    </td></tr>
    <tr><td colspan="2">
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Pages", new { id=Model.WikiId})
    </td></tr>
    </table>
